
from Config import Configs
from services.scrap_serp import ScrapDataFromGoogle
from services.store_data import StoreData



if __name__ == '__main__':

    config = Configs()
    search_term = {
        "q":config.SEARCH_TEXT,
        "location":config.LOCATION,
        "api_key":config.SERP_API_KEY,
        "num":config.SERP_NUM
    }

    result = ScrapDataFromGoogle.start_scrap(search_term)
    StoreData.store_google(result)
    print("程序执行完毕")


